You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Statistics Class > Statistics Methods > ExponentFit Method > Statistics.ExponentFit Method ([In] TVec, out double, double[], double)
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
Statistics.ExponentFit Method ([In] TVec, out double, double[], double)

Calculate parameters for exponentially distributed values.

Syntax
C#
Visual Basic
public static void ExponentFit([In] TVec X, out double mu, ref double[] PCIMu, double Alpha);
Parameters 
Description 
[In] TVec X 
Stores data which is assumed to be exponentialy distributed. 
out double mu 
Returns exponential distribution parameter estimator. 
ref double[] PCIMu 
Mu (1-Alpha)*100 percent confidence interval. 
double Alpha 
Confidence interval percentage. 

RandomExponent, ExponentStat

The following example generates 100 random standard exponentially distributed values and then uses ExponentFit routine to extract used Mu parameter:

using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples; { private void Example() { Vector vec1 = new Vector(1000,false); // first, generate 1000 randomly beta distributed // numbers with parameter mu=4.13, and default seed StatRandom.RandomExponent(4.13,vec1,-1); double estmu; double[] cimu = new double[2]; // Now extract the mu and its 95% confidence intervals. Statistics.ExponentFit(vec1,out estmu,out cimu, 0.05);
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!